package com.googlecode.axolotl.prevayler;

import java.util.Date;
import java.util.Map;

import org.prevayler.Transaction;


public class DeleteTransaction implements Transaction {

	private Object id;
	
	public DeleteTransaction() {
	}
	
	
	public DeleteTransaction(Object id) {
		this.id = id;
	}
	
	
	public void executeOn(Object prevalentSystem, Date arg1) {
		((Map) prevalentSystem).remove(id);
	}

}
